package com.wxzz.elearing.pay.service.openfeign;

import com.wxzz.elearning.common.vo.ReturnVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient("2126-wxzz-comment-application")
public interface IWxPayApiFeign {

    /**
     * 改变问答状态
     *
     * @return
     */
    @RequestMapping(value = "/wxqwpay-api/isPayChange/{orderId}", method = RequestMethod.POST)
    ReturnVO iQuestionsAnswersListService(@PathVariable(value = "orderId") Long orderId);

    /**
     * 根据订单id查询目标用户id
     *
     * @param orderId
     * @return
     */
    @RequestMapping(value = "/wxqwpay-api/userIdByOrderId/{orderId}", method = RequestMethod.POST)
    ReturnVO getUserIdByOrderId(@PathVariable Long orderId);
}
